#ifndef _PATH_HELPER_H_
#define _PATH_HELPER_H_
#include <string>
#include <vector>
using namespace std;

void readDirectory(const string& directoryName, vector<string>& filenames, bool addDirectoryName = true, const string& suffix = ".jpg");

class JDir
{
public:
	JDir(const string& path = "");
	void operator()(const string& path, vector<string>& filenames, bool isAddDirName = false);
	JDir& clear_suffix();
	JDir& add_suffix(const string& suffix = ".jpg");
	JDir& setAddDirName(bool flag);
private:

	string path;
	bool isAddDirName;
	vector<string> suffixs;
};

#endif /*_PATH_HELPER_H_*/